<?php
namespace System\Core\LogHandlers;

class ErrorLogHandler extends BaseHandler {
    public function handle($level, $message, array $context = []) {
        if (!$this->isHandling($level)) {
            return;
        }
        
        $log = $this->formatMessage($level, $message, $context);
        error_log(trim($log));
    }
}